package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hc
 * @date 2021/12/27 10:30
 */

/**
 * 用户对某条评论的评论，只能对第一次评论进行评论
 */
@ApiModel(value = "com-hc-domain-Comment2")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_comment2")
public class Comment2 implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    /**
     * 评论编号
     */
    @TableField(value = "comment_id")
    @ApiModelProperty(value = "评论编号")
    private Long commentId;

    /**
     * 评论时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;
}